﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using Model;

namespace BLL
{
    public class SysBLL
    {
        SysDbContext context = new SysDbContext(System.Configuration.ConfigurationManager.ConnectionStrings["SysDbContext"].ConnectionString);

        public List<SysMenu> GetAllMenus()
        {
            return context.Menus.ToList();
        }

        public SysDbContext DbContext { get { return context; } }
    }
}
